package com.rchat.pocmini.activity.groupsselect;

import com.aso.common.http.delegate.HttpCallbackImpl;
import com.rchat.pocmini.activity.groupsselect.view.GroupSelectBean;
import com.rchat.pocmini.common.mvp.BaseModel;
import com.rchat.pocmini.common.mvp.BasePresenter;
import com.rchat.pocmini.common.mvp.BaseView;

import java.util.ArrayList;

/**
 * Created by itsdf07 on 2017/8/31.
 */

public interface GroupsSelectorContract {
    interface View extends BaseView {
        void updateList(ArrayList<GroupSelectBean> bean);

        void onBackToMain();
    }

    abstract class Presenter extends BasePresenter<GroupsSelectorContract.View, GroupsSelectorContract.Model> {

        abstract void checkKeepGroups(ArrayList<GroupSelectBean> been);

        abstract void notifyUpdateGroups();
    }

    interface Model extends BaseModel {
        /**
         * 会员降成非会员时选择保留的群组设置
         *
         * @param userName
         * @param data
         * @param callback
         */
        void checkKeepGroups(String userName, ArrayList<GroupSelectBean> data, HttpCallbackImpl callback);
    }
}
